import request from '@/utils/request'
let baseURL = '/portal-server/v1/api/propertyReceivable'

/**
 * 获取物业应收列表
 */
export const getPropertyReceivableListApi = (data) => {
	return request({
		url: `${baseURL}/list`,
		method: 'post',
		data
	})
};
/**
 * 获取区域、标准下拉
 */
export const getDropdownApi = (params) => {
	return request({
		url: `${baseURL}/listDropdown`,
		method: 'get',
		params,
		neverCancel: true,
	})
};

/**
 * 获取项目下拉
 */
export const getProjectDropdownApi = (params) => {
	return request({
		url: `${baseURL}/projectDropdown`,
		method: 'get',
		params
	})
};
/**
 * 获取物业应收明细列表
 */
export const getPropertyReceivableDetailListApi = (data) => {
	return request({
		url: `${baseURL}/detail`,
		method: 'post',
		data
	})
};
/**
 * 获取区域下拉
 */
export const getRegionDropdownDropdownApi = (params) => {
	return request({
		url: `${baseURL}/regionDropdown`,
		method: 'get',
		params
	})
};
/**
 * 获取楼宇下拉
 */
export const getBuildDropdownApi = (params) => {
	return request({
		url: `${baseURL}/buildDropdown`,
		method: 'get',
		params
	})
};
/**
 * 获取房间下拉
 */
export const getRoomDropdownApi = (params) => {
	return request({
		url: `${baseURL}/roomDropdown`,
		method: 'get',
		params
	})
};
/**
 * 获取收费项目下拉
 */
export const getToolItemDropdownApi = (params) => {
	return request({
		url: `${baseURL}/toolItemDropdown`,
		method: 'get',
		params
	})
};